const express = require('express')
// 创建路由对象
const router = express.Router()

// 导入用户中心路由处理模块
const userCenterHanler = require('../router_handler/userCenter')

// 注册新用户
router.get('/center', userCenterHanler.getUserInfo)
// 更新用户资料
router.post('/update/userInfo', userCenterHanler.updateUserInfo)
// 获取下单地址
router.get('/address', userCenterHanler.getUserAddress)
// 修改下单地址
router.post('/address/update', userCenterHanler.updteAddress)
// 添加地址
router.post('/address/insert', userCenterHanler.insertAddress)

// 向外共享路由
module.exports = router
